/**
 * Created by likai on 17/1/18.
 */
var http = require("http")
var server = http.createServer(function(req,res){
    console.log(req.method)
    res.writeHead(200, {'Content-Type': 'application/json'});
    res.end(JSON.stringify({method: req.method}))
});
server.on("connection",function(req,res){
    console.log("connected");
})
server.on("request",function(req,res){
    console.log("request");
});
server.listen(3000);


